# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=py3-zope-testrunner
_pkgname=zope.testrunner
pkgver=6.1
pkgrel=0
pkgdesc="Zope testrunner script"
options="!check" # Fails to run
url="https://github.com/zopefoundation/zope.testrunner"
arch="noarch"
license="ZPL-2.1"
depends="python3 py3-setuptools py3-zope-exceptions py3-zope-interface"
makedepends="py3-gpep517 py3-wheel"
checkdepends="py3-zope-testing"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
6f23bcc7a27b0c5ab8b59ad0ea03a5482b4e7e924b8df41e5c78e86c402971761c875070c5b8553d3d90f772d04422a07bde675b8e2cb160fe5326031226fde3  zope.testrunner-6.1.tar.gz
"
